#ifndef __BSP_H__
#define __BSP_H__

#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <stdarg.h>
#include "includes.h"
#include "lpc177x_8x_gpio.h"
#include "lpc177x_8x_clkpwr.h"
#include "lpc177x_8x_pinsel.h"
#include "lpc177x_8x_systick.h"
#include "lpc177x_8x_uart.h"
#include "lpc177x_8x_emc.h"
#include "lpc177x_8x_rtc.h"
#include "lpc177x_8x_exti.h"
#include "lpc177x_8x_gpdma.h"
#include "lpc177x_8x_eeprom.h"
#include "lpc177x_8x_adc.h"
#include "lpc177x_8x_wwdt.h"
#include "dev_led.h"
#include "lpc_uart.h"
#include "dev_sram.h"
#include "lpc_rtc.h"

enum{
  FUNC0 = 0,
  FUNC1,
  FUNC2,
  FUNC3,
  FUNC4,
  FUNC5,
  FUNC6,
  FUNC7,
  FUNC8,
}; // gpio port function

extern void (*hw_feed_wtd)(void);
void hw_init(void);
void hw_sys_tick_isr(void);
#endif
